<!--
**********************************************************
* @Author: 张小平
* @Date:   2024-05-01
* @Email:  qqshuqian@163.com
* @Last modified: 最后修改日期
* @Description: 文件描述
**********************************************************
-->
<template>
<div class="wrap">
  <Tabs2 :data="['基础属性', '表单操作权限']"
  @on-tab="handleTab"
  :height="40"
  :tab="tab" />

  <BaseInfo v-if="tab === 0" :item="item" @on-item="handleBaseInfo" />

  <FormList v-if="tab === 1" :datas="fromPropertyList" @on-list="handleFormList" />

</div>
</template>

<script>
import { mixinFormProperty, mixinTabs } from '../mixins'
import FormList from './FormList.vue'
export default {
  mixins: [mixinFormProperty, mixinTabs],
  components: {
    FormList
  },
  data() {
    return {

    }
  },
  watch: {
    item(val) {
      if (val?.properties?.fromPropertyList) {
        this.fromPropertyList = val.properties.fromPropertyList
      }
    }
  }
}
</script>

<style lang="scss" scoped>
@import "./pop.scss";
</style>
